<?php
echo include("index.php");
$select='<select name="cate">
			<option value="">chon loai xe</option>
			<option value="">xe may</option>
			<option value="">oto</option>';
?>
<html>
<head>
<script language="javascript">
function onsubmit(){
			var f=document.frm;
			var id=f.idname.value;
			var name=f.name.value;
			var des=f.des.value;
			var price=f.price.value;
			var s=0;
			if(id=="")
			{
				alert("id ko dc de rong");
				s=1;
				return false;
			}
			if(name=="")
			{
				alert("name ko dc de rong");
				s=1;
				return false;
			}	
            if(des=="")
			{
				alert("des ko dc de rong");
				s=1;
				return false;
			}					
			if(price=="")
			{
				alert("price ko dc de rong");
				s=1;
				return false;
			}			
						
			if(s!=1){
			f.act.value=1;
			f.submit();
			}
		}
</script>
<style>
</style>
</head>
<body>
<center>
<hr size="5" width="400">
<form name="frm" method="POST" action="xl_form.php">
	<table style="background:#336699" width="400">
		<tr>
			<td>
				<tr>
					<td>product_ID:</td>
					<td><input type="text" value="" name="idname">
					<input name="act" value="" type="hidden"></td>
				</tr>
					<td>product_name:</td>
					<td><input type="text" value="" name="name"></td>
				<tr>
					<td>product_Description:</td>
					<td><input type="text" value="" name="des"></td>
				</tr>
				<tr>
					<td>Price:</td>
					<td><input type="text" value="" name="price"></td>
				</tr>
				<tr>
					<td>category:</td>
					<td><?php echo $select;?></td>
				</tr>
				<tr>
					<td><input type="submit" value="edit" name="edit"></td>
					<td><input type="reset" value="cancel" name=""></td>
				</tr>
			</td>
		</tr>
	</table>
</form>
</center>
</body>
</html>
